<?php


namespace api\blog\controller;


use api\blog\model\BannerModel;
use cmf\controller\RestBaseController;

class BannerController extends RestBaseController
{
    //查询内容，搜索名称
    public function getBannerList(){
        //分页
        $page = input('page/d',1);
        $pageSize = input('page_size/d',10);
        $list = BannerModel::order('id','desc')
            ->field('id,image')
            ->page($page,$pageSize)
            ->select();
        $this->success('轮播图列表',$list);
    }
}